package main

import (
	"main/database"
	"main/routes"
)

func main() {
	//初始化数据库
	err := database.InitMysql()
	if err!=nil{
		panic(err)
	}
	defer database.Close()


	//初始化路由
	r := routes.InitRoute()

	r.Run(":9191")
}




